package com.yyc.system.dao;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import com.yyc.core.Mapper;
import com.yyc.system.model.TClass;

public interface TClassMapper extends Mapper<TClass> {

	@Select("SELECT b.* FROM t_class_user a,t_class b WHERE a.user_id = #{userId} AND a.class_id = b.id")
	List<TClass> findUserClass(Integer userId);

}